package com.example.HeadFirstDemo.observe;

import com.example.HeadFirstDemo.observe.javaImpl.DataDemo;
import com.example.HeadFirstDemo.observe.javaImpl.ObserverDemo1;

public class JavaTestCase {
    public static void  main(String[] args) {
        DataDemo dataDemo=new DataDemo();
        ObserverDemo1 observerDemo1=new ObserverDemo1(dataDemo);
        dataDemo.setData(1,"zrq","shanghai");
    }
}
